<!doctype html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<link href="../css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="../css/server.css" />
</head>

<body class="gray">
	<div class="mui-content loading" id="vueMain">
		<ul class="mui-table-view common-issue" style="margin-top: 10px;">
			<div v-if="list.length==0">
				<p style="padding:50px 0;text-align: center;">此类问题已经从地球上消失了</p>
			</div>
			<template v-else v-for="item in list">
	        		<li class="mui-table-view-cell link" _id="issueDetail" _title="问题详情" _href="issueDetail.html" :_extras="'issueid='+item.id">·{{item.title}}</li>
			</template>
	    </ul>		    
	</div>
<script src="../js/mui.js"></script>
<script src="../js/vue.min.js"></script>
<script src="../js/bexta.js"></script>
<script type="text/javascript">
	var apps, views;
	mui.init({
		beforeback:function(){
			if( views.opener().id == 'server' ){
				bexta.setStatus(true);
			}
		}
	})
	mui.plusReady(function () {
	    views = bexta.getWebview();
	    bexta.ajax(api.goods_issue, function(res){
	    		initVue(res)
	    },{data:{uid:bexta.getStorage(USER).uid, commend_id:views.type}})
	});
	function initVue(res){
		apps = new Vue({
			el:"#vueMain",
			data:{
				list:res
			},
			mounted:function(){
				document.querySelector('.loading').classList.add('loadRun');
			}
		});
	}
</script>
</body>
</html>